package com.stxx.stiot2.service;


import com.alibaba.fastjson2.JSONObject;
import com.influxdb.client.domain.Config;
import com.stxx.framwork.domain.model.Option;
import com.stxx.framwork.support.BaseService;
import com.stxx.framwork.support.OptionsService;
import com.stxx.stiot2.domain.Profile;
import com.stxx.stiot2.domain.SysConfig;
import lombok.Data;
import org.noear.solon.annotation.Path;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Fuzhenlei
 * @date 2025/01/15 16:40
 */
public interface SysConfigService extends BaseService<SysConfig,String> {


    JSONObject getConfig(String code);

    List<Option> options(@Path String code);

    String getStr(@Path String code);

    @Data
    public static class Keys{
        public final static String mqtt_server= "mqtt_server";
        public final static String redis_server= "redis_server";
        public final static String Influxdb_server= "influxdb_server";
        public final static String alarm_subscribe= "alarm_subscribe";
        public final static String signal_subscribe= "signal_subscribe";
        public final static String auth_topiam= "auth_topiam";
        public final static String auth_maxkey= "auth_maxkey";
        public final static String web_root= "web_root";
        public final static String asset_type= "asset_type";


        public static String token = "token";
    }
}
